package org.example.custom.config;

import lombok.Data;

/**
 * 数据源属性
 */
@Data
public class DataSourceProperty {
    private String url;
    private String username;
    private String password;
    private String driverClassName;

    private HikariProperty hikari = new HikariProperty(); // 嵌套配置类
}

@Data
class HikariProperty {
    private int maximumPoolSize = 10;
    private int minimumIdle = 2;
    private String poolName;
}
